﻿using System.Data;
using SHARED;
using System.Collections.Generic;
using System.ComponentModel;

namespace SHARED
{
    public interface IDb
    {
        MasterElementList ExecuteSelectCommandObject(string command, MasterElementList listM, MasterElement root, BackgroundWorker bw);

        DataTable ExecuteSelectCommand(string selectStatement);

        List<string> GetColumnNames(string TableName);

        List<string> GetColumnNames(string Query, bool isQuery);

        int GetNumberOfRowsAffected(string command);

        bool isConnected();

    }

}
